package com.zrz.controller;

import com.zrz.service.HouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/house")
public class HouseController {
    @Autowired
    private HouseService houseService;
    @RequestMapping("/list")
    public Object list(Integer type){
        return houseService.getHosuseList(type);
    }
    @RequestMapping("/details")
    public Object details(Integer id){
        return houseService.getHouseInfo(id);
    }

}
